//
//  KLBaseDAO.m
//  KLCurrency
//
//  Created by apple on 2017/12/25.
//  Copyright © 2017年 bonc. All rights reserved.
//

#import "KLBaseDAO.h"

@implementation KLBaseDAO

+ (long long)insertModel:(KLBaseModel *)model withDataBase:(FMDatabase *)db {
    NSString *msg = [NSString stringWithFormat:@"%s is not implemented"
                     "for the class %@", sel_getName(_cmd), self];
    @throw [NSException exceptionWithName:@"CurrencyDAOInsertMethodException" reason:msg userInfo:nil];
}

+ (KLBaseModel *)queryModelById:(long long)localId withDataBase:(FMDatabase *)db{
    NSString *msg = [NSString stringWithFormat:@"%s is not implemented"
                     "for the class %@", sel_getName(_cmd), self];
    @throw [NSException exceptionWithName:@"CurrencyDAOQueryMethodException" reason:msg userInfo:nil];
}

+ (BOOL)deleteModelWithId:(long long)localId withDataBase:(FMDatabase *)db {
    NSString *msg = [NSString stringWithFormat:@"%s is not implemented"
                     "for the class %@", sel_getName(_cmd), self];
    @throw [NSException exceptionWithName:@"CurrencyDAODeleteMethodException" reason:msg userInfo:nil];
}

@end
